package com.woniu.his.mms.client;

import com.woniu.his.mms.client.param.CreateHerbalPrescriptionClientParam;
import com.woniu.his.mms.client.result.HerbalPrescriptionResult;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-28 15:18
 */
@FeignClient(contextId = "HerbalPrescriptionClient",name = "mms",path = "mms")
public interface HerbalPrescriptionClient {

    /**
     *创建草药处方
     * @param param
     * @return
     */
    @PostMapping("createHerbalPrescription")
    Result<Boolean> createHerbalPrescription(@RequestBody CreateHerbalPrescriptionClientParam param);

    /**
     * 作废草药处方
     * @param ids
     * @return
     */
    @GetMapping("deleteHerbalPrescription")
    Result<Boolean> deleteHerbalPrescription(@RequestParam("ids") List<Long> ids);

    /**
     * 根据ids查询草药处方
     * @param ids
     * @return
     */
    @GetMapping("queryHerbalPrescriptionByIds")
    Result<List<HerbalPrescriptionResult>> queryHerbalPrescriptionByIds(@RequestParam("ids") List<Long> ids);

    /**
     * 根据挂号id查询草药处方
     * @param CaseId
     * @return
     */
    @GetMapping("queryHerbalPrescriptionByRegId")
    Result<HerbalPrescriptionResult> queryHerbalPrescriptionByCaseId(@RequestParam("RegId") Long CaseId);

    /**
     * 根据账单id查询草药处方
     * @param billId
     * @return
     */
    @GetMapping("queryHerbalPrescriptionByBillId")
    Result<HerbalPrescriptionResult> queryHerbalPrescriptionByBillId(@RequestParam("billId") Long billId);

    /**
     * 支付成功修改状态
     * @param billId
     * @return
     */
    @GetMapping("paySuccess1")
    Result<Boolean> paySuccess(@RequestParam("billId") Long billId);
}
